package com.test.project_test.test.interfaces.facade.impl;

import com.test.project_test.test.domain.PageDTO;
import com.test.project_test.test.domain.service.UserService;
import com.test.project_test.test.infrastructure.mysql.po.User;
import com.test.project_test.test.interfaces.facade.UserFacadeService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

/**
 * @author Duan SanMao
 * @date 2021/9/1
 */
@Service
public class UserFacadeServiceImpl implements UserFacadeService {

    @Resource
    private UserService userService;

    @Override
    public PageDTO<User> userList(Integer state) {

        return userService.selectUserPage(state) ;
    }
}
